From e5e95934bac824d5cbf791491bbc3a3374604935 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Tue, 21 Dec 2010 18:44:53 +0100 Subject: [PATCH] Fix color name (as of rgb.txt) parsing in symbolic colors The end of the substring wasn't being detected properly. --- gtk/gtkcssprovider.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c index c318ec9a14..c8d7624d59 100644 --- a/gtk/gtkcssprovider.c +++ b/gtk/gtkcssprovider.c @@ -2116,8 +2116,9 @@ symbolic_color_parse_str (const gchar *string, } else { - /* color name? parse until first whitespace */ - while (*end != ' ' && *end != '\0') + /* Color name */ + while (*end != '\0' && + (g_ascii_isalnum (*end) || *end == ' ')) end++; } -- 2.30.2